import org.kohsuke.github.GHRepository;
import org.kohsuke.github.GitHub;

import java.io.IOException;

/**
 * @ClassName SimpleUsage
 * @Description
 * @Author yuhang11
 * @Date 2022/1/5 5:19 下午
 * @Version 1.0
 */
public class SimpleUsage {
    public static void main(String[] args) throws IOException {
        GitHub github = GitHub.connect();
        GHRepository repo = github.createRepository(
                "new-repository","this is my new repository",
                "https://www.kohsuke.org/",true/*public*/);
        repo.addCollaborators(github.getUser("abayer"),github.getUser("rtyler"));
        repo.delete();
    }
}
